package com.zzvcom.sms.sign;

import com.zzvcom.sms.utils.HttpUtil;
import com.zzvcom.sms.utils.Md5Util;

public class DefaultAppSignature implements AppSignature {
    public DefaultAppSignature() {
    }

    public String sign(Signable signable, String appSecret) {
        String str = HttpUtil.buildQueryString(signable.toMap(), "appSecret", appSecret);
        return Md5Util.md5Hex(str);
    }
}